<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
	<head>
		<meta charset=UTF-8>
		<title>联盟商家</title>
	    <base href="<%=basePath%>">
		<link rel="stylesheet" type="text/css" href="bootstrap-rs/themes/default/easyui.css">
		<link rel="stylesheet" type="text/css" href="bootstrap-rs/themes/icon.css">
		<link rel="stylesheet" type="text/css" href="bootstrap-rs/demo.css">
		<script type="text/javascript" src="bootstrap-rs/jquery.min.js"></script>
		<script type="text/javascript" src="bootstrap-rs/jquery.easyui.min.js"></script>
	</head>
	<body>
		<form action="club/net/update" method="post">
		<input type="hidden" value="${net.id}" name=id>
		<table border="1" cellspacing="0" width="60%" style="text-align:center;">
				<caption>
					<span>添加俱乐部网点</span>
				</caption>
				<tr>
					<td>网点名称：</td>
					<td>
						<input type="text" name="name" value="${net.name}">
					</td>
				</tr>
				<tr>
					<td>网点电话：</td>
					<td>
						<input type="text" name="phone" value="${net.phone}">
					</td>
				</tr>				
				<tr>
					<td>管理员：</td>
					<td>
						<input type="text" name="manager" value="${net.manager}">
					</td>
				</tr>
				<tr>
					<td>网点级别：</td>
					<td>
						<select name="netLevel">
							<c:forEach items="${levels}" var="level">
								<option value="${level.typeid}" ${level.typeid eq net.netLevel?'selected':''}>${level.typename}</option>
							</c:forEach>
						</select>
					</td>
				</tr>		
				<tr>
					<td>服务类型：</td>
					<td>
						<select name="serviceType">
							<c:forEach items="${types}" var="type">
								<option value="${type.typeid} ${type.typeid eq net.serviceType?'selected':''}">${type.typename}</option>
							</c:forEach>
						</select>					
					</td>
				</tr>						
				<tr>
					<td>网点地址：</td>
					<td>
						<textarea rows="5" cols="30" name="address">${net.address}</textarea>
					</td>
				</tr>
				<tr>
					<td>服务内容：</td>
					<td>
						<textarea rows="5" cols="30" name="serviceContent">${net.serviceContent}</textarea>
					</td>
				</tr>
				<tr>
					<td colspan="2">
						<input type="submit" value="修改">
						<a href="club/net/queryAll"><input type="button" value="返回"></a>
					</td>
				</tr>																
		</table>
		</form>
	</body>
</html>